package designPatterns.factory_simple;

public class PersionFactory {

	public Persion createPersion(int id) {
		Persion p=null;
		switch (id) {
		case 0:
			p=new YellowPersion();
			break;
		case 1:
			p=new BlackPersion();
			break;
		}
		return p;
	}
}
